/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package TreeView;

/**
 *
 * @author Mr.Sam
 */
import java.awt.*;

public class BorderLabel extends Label {
    public BorderLabel() {
        this("Label");
    }
    
    public BorderLabel(String text) {
        super(text);
    }
    
    public void paint(Graphics g) {
        super.paint(g);
        Dimension dim = getSize();
        g.drawRect(0, 0, dim.width - 1, dim.height - 1);
    }
}

